<?php

include('databaseconnection.php');
//include ('header1.php');
$email=$_POST['email']; 
$firstname=$_POST['firstname'];
 
  $lastname=$_POST['lastname']; 
  $gender=$_POST['gender']; 
 $date=$_POST['day']; 
 $month=$_POST['month']; 
  $year=$_POST['year']; 
  $dob=$year."-".$month."-".$date; 
  $country=$_POST['country']; 
  $language=$_POST['language']; 
  $qualification=$_POST['qualification']; 
  $linked_in= $_POST['Linked_in']; 
  $short_bio=$_POST['Bio']; 
  $password=md5($_POST['password']);
 $pass=$_POST['password'];
  $conformpassword=md5($_POST['conformpassword']);
  
  
  $query="INSERT INTO user (email, first_name, last_name, gender, date_of_birth, country, language,qualification,linked_in,short_bio,password) VALUES ('$email', '$firstname', '$lastname', '$gender', '$dob', '$country','$language','$qualification','$linked_in','$short_bio','$password')";
$rez=mysql_query($query);
  if(!$rez) {echo "INvalid".mysql_error();}
 header("Location:login.php?err= You successfully sin in, Welcome to our System......"); 
  ?>